﻿<%@ Page Language="C#" MasterPageFile="~/defaultLayout.master" AutoEventWireup="true" CodeFile="Stoelkeuze.aspx.cs" Inherits="bestellen_Stoelkeuze" %>
<%@ MasterType  virtualPath="~/defaultLayout.master"%>
<asp:Content ID="maincontent" ContentPlaceHolderID="main" runat="server">
    <script type="text/javascript">
        var buttonId = '<%= ButtonDoPostBack.ClientID %>';
        var hiddenFieldId = '<%= HiddenFieldSelectedValues.ClientID %>';

        function selectedItem(values) {
            var selectedValues = document.getElementById(hiddenFieldId).value;
            if (selectedValues.indexOf(values) === -1) {
                document.getElementById(hiddenFieldId).value += ";" + values;
            }
            document.getElementById(buttonId).click();
        }
    </script>
    <div class="content">
        <div id="movieInfo">
            <div id="movieMedia">
                <asp:Image ID="movieImg" height="250px" runat="server" />
            </div>
            <br />
            <div id="movieName">
                <asp:Label ID="movTitle" runat="server" />
            </div>
            <br />
            <div id="movieRated">
                <asp:Repeater ID="movieRatedRepeater" runat="server">
                    <ItemTemplate>
                        <asp:Image ID="Image1" Width="25px" runat="server" ImageUrl='<%# Eval("kijkwijzer_symbool") %>' />
                    </ItemTemplate>
                </asp:Repeater>
            </div>
            <div id="movieTime">
                <asp:Label id="time" CssClass="bold" Text="Tijd:" runat="server" />
                <asp:Label ID="movTime" runat="server" />
            </div>
            <div id="movieGenres">
                <asp:Label id="genre" CssClass="bold" Text="Genre:" runat="server" />
                <asp:Label ID="movGenres" runat="server" />
            </div>
            <div id="movieLength">
                <asp:Label ID="length" CssClass="bold" Text="Duur:" runat="server" />
                <asp:Label ID="movLength" runat="server" />
                <asp:Label ID="minutes" runat="server" Text="minuten" />
            </div>
            <div id="movieProducer">
                <asp:Label ID="producer" CssClass="bold" Text="Regie:" runat="server" />
                <asp:Label ID="movProducer" runat="server" />
            </div>
            <div id="movieType">
                <asp:Label ID="type" CssClass="bold" Text="Versie:" runat="server" />
                <asp:Label ID="movType" runat="server" />
            </div>
            <div id="movieSeatsAvailable">
                <asp:Label ID="seats" CssClass="bold" Text="Aantal plaatsen besckikbaar:" runat="server" />
                <asp:Label ID="movSeatsAvailable" Text="Versie:" runat="server" />
            </div>
            <br />
        </div>
        <div class="selectChairContainer">
            <asp:GridView OnRowDataBound="GridView1_RowDataBound" CssClass="derpGrid" ID="GridView1" BorderWidth="0" AutoGenerateColumns="false" ShowHeader="false" runat="server" />
                
            <div style="visibility: hidden; height: 0px; width: 0px;">
                <asp:HiddenField ID="HiddenFieldSelectedValues" runat="server" />
                <asp:Button ID="ButtonDoPostBack" OnClick="ButtonDoPostBack_Click" runat="server" Text="button" Visible="true" />
            </div>
            <div class="clearDiv"></div>
        </div>
        <div class="headerButton">
            <asp:HyperLink NavigateUrl="~/bestellen/Default.aspx" runat="server" ID="backButtonHyperlink" Text="Terug" />
        </div>
        <asp:Button ID="btnClear" Text="Wissen" CssClass="headerButton" runat="server" OnClick="btnClear_Click" />
    </div>
</asp:Content>